﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.snowflake
{
	// Token: 0x020000E8 RID: 232
	public class TAlterPipeStmt : TCustomSqlStatement
	{
		// Token: 0x060007E8 RID: 2024 RVA: 0x003014A1 File Offset: 0x002FF6A1
		public TAlterPipeStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstAlterPipe;
		}

		// Token: 0x060007E9 RID: 2025 RVA: 0x003014B5 File Offset: 0x002FF6B5
		public void setPipeName(TObjectName pipeName)
		{
			this.pipeName = pipeName;
		}

		// Token: 0x060007EA RID: 2026 RVA: 0x003014BE File Offset: 0x002FF6BE
		public TObjectName getPipeName()
		{
			return this.pipeName;
		}

		// Token: 0x060007EB RID: 2027 RVA: 0x003014C8 File Offset: 0x002FF6C8
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.pipeName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x060007EC RID: 2028 RVA: 0x00301505 File Offset: 0x002FF705
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060007ED RID: 2029 RVA: 0x00301515 File Offset: 0x002FF715
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040011F6 RID: 4598
		private TObjectName pipeName;
	}
}
